Dynamic import is not working the same as regular import